﻿using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;

namespace Unread.App.Views
{
    public sealed partial class HeaderUserControl : UserControl
    {
        public static readonly DependencyProperty CanGoBackProperty =
            DependencyProperty.Register("HeaderUserControlCanGoBack", typeof(bool), typeof(Page), new PropertyMetadata(false));

        public bool CanGoBack
        {
            get { return (bool)GetValue(CanGoBackProperty); }
            set { SetValue(CanGoBackProperty, value); }
        }

        public HeaderUserControl()
        {
            this.InitializeComponent();

            DataContext = this;
        }
    }
}
